<template>
  <ele-multi-cascader
    ref="select"
    clearable
    :options="options"
    labelKey="dictValue"
    valueKey="dictKey"
    v-model="inputValue"
    v-bind="{
    ...$attrs,
    placeholder: $attrs.placeholder || '请选择退款原因'
  }" v-on="$listeners">
  </ele-multi-cascader>
</template>

<script>
import inputValueMixin from '@/mixins/inputValueMixin'
import {
  getCacheData, 
} from "@/const/cacheData"

export default {
  name: 'RefundReasonCascader',
  mixins: [inputValueMixin],
  data() {
    return {
      options: []
    };
  },
  methods: {
    getOptions() {
      //投诉等级列表
      getCacheData("refund_reason").then(res => {
        this.options = res
      })
    },
    getVm() {
      return this.$refs.select
    }
  },
  created() {
    this.getOptions()
  }
};
</script>
<style lang="scss" scoped>

</style>